<template>
	<view>
		<uni-nav-bar @clickLeft="$tab.back()" fixed="true" left-icon="left" title="详情" statusBar="true" :border="false" />
		<view class="p-32" v-if="detail">
			<view class="flex flex-col items-center">
				<view class="text-32 font-700">
					{{detail.title}}
				</view>
				<view class="text-28 text-gray mt-16">
					{{detail.createTime}}
				</view>
			</view>
			<u-divider></u-divider>
			<mp-html :content="detail.content" />
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				detail:null
			};
		},
		onLoad(e) {
			this.$Api.index.cms_detail(e.id).then(res=>{
				this.detail = res.data
			})
		}
	}
</script>

<style lang="scss">
	page{
		background-color: #f8f8f8;
	}
</style>
